<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传下载演示页面</title>
    <!--使用链接表达式/开头 相对项目根路径-->
    <link rel="stylesheet" th:href="@{/Emily/css/common.css}" href="">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
          integrity=" sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <!-- jQuery first -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
            integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
    </script>

    <!-- Popper.js -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
            integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous">
    </script>

    <!-- Bootstrap JS -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
            integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous">
    </script>

</head>
<body>
<h1>文件上传Demo</h1>
<center>
    <div>
        <form th:action="@{/product/addProduct}" enctype="multipart/form-data" method="post">
            <br><label>产品名字： <input type="text" name="name"> </label><br><br>
            <label>产品图片： <input type="file" name="imgFile"> </label><br><br>
            <label>使用说明： <input type="file" name="useFile"></label><br><br>
            <label><input type="checkbox" name="agree"><b>I agree to the</b> Terms and
                Conditions.</label><br><br>
            <button type="submit" class="btn btn-light">提交</button>
        </form>
    </div>
</center>
</body>
</html>